
export function joinParentPath(routes: AppRouteRecord[], parentPath = '') {

    for (let index = 0; index < routes.length; index++) {
        const route = routes[index]
        if (!route.path.startsWith('/')) {
            route.path = parentPath + '/' + route.path
        }

        if (route.children?.length) {
            joinParentPath(route.children, route.path)
        }
    }

}